<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>车型信息列表</title>
<style type="text/css">
	table{
		width:100%;
		border: 1px solid black;
		border-collapse:collapse; 
	}
	td,th{
		padding: 5px;
		border: 1px solid black;
	}
	tr{
		line-height: 40px;
	}
</style>
</head>
<body>
	<h2 align="center">后台管理</h2>
	<hr>
	<a href="${basePath }/car/input">新增</a>
	<br><br>
	<table>
		<tr>
			<td>代码</td>
			<td>车名</td>
			<td>品牌</td>
			<td>车系</td>
			<td>年代款</td>
			<td>配置款</td>
			<td>座位数</td>
			<td>车门数</td>
			<td>燃料类型</td>
			<td>变速箱类型</td>
			<td>排量</td>
			<td>燃油标号</td>
			<td>驱动方式</td>
			<td>发动机进气方式</td>
			<td>天窗</td>
			<td>油箱容量</td>
			<td>音响</td>
			<td>座椅</td>
			<td>倒车雷达</td>
			<td>气囊</td>
			<td>DVD/CD</td>
			<td>GPS导航</td>
			<td>操作</td>
		</tr>
		<c:forEach items="${list }" var="car">
			<tr>
				<td>${car.id }</td>
				<td>${car.name }</td>
				<td>${car.pp }</td>
				<td>${car.cx }</td>
				<td>${car.ndk }</td>
				<td>${car.pzk }</td>
				<td>${car.zws }</td>
				<td>${car.cms }</td>
				<td>${car.rllx }</td>
				<td>${car.bsxlx }</td>
				<td>${car.pl }</td>
				<td>${car.rybh }</td>
				<td>${car.qdfs }</td>
				<td>${car.fdjjqfs }</td>
				<td>${car.tc }</td>
				<td>${car.yxrl }</td>
				<td>${car.yx }</td>
				<td>${car.zy }</td>
				<td>${car.dcld }</td>
				<td>${car.qn }</td>
				<td>${car.dvdcd }</td>
				<td>${car.gps }</td>
				<td>
					<a href="${basePath }/car/edit/${car.id }">编辑</a>
				</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>